package writers;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PrintWriterExer {

	public void run(){
		PrintWriter err  = createErrors(); 
		err.write("NOT");
		err.close();
		System.out.println(err.toString());
	}
	
	public PrintWriter createErrors(){
		String foo = "ERRRRORRS!";
		PrintWriter er = null;
		try {
			er = new PrintWriter(foo);
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		return er;
	}
	
	public static void main(String[] args) {
		PrintWriterExer pwe = new PrintWriterExer();
		pwe.run();
	}

}
